package com.liang.subject.application.convert;

import com.liang.subject.application.dto.SubjectInfoDTO;
import com.liang.subject.common.entity.PageDTO;
import com.liang.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoDTOConverter {
    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);

    SubjectInfoBO convertDTO2BO(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBO2DTO(SubjectInfoBO subjectInfoBO);

    PageDTO<SubjectInfoDTO> convertBO2DTO(PageDTO<SubjectInfoBO> subjectInfoBO);

    List<SubjectInfoDTO> convert2DTOList(List<SubjectInfoBO> list);
}
